package com.nanjia.boot.myflow.deliveryaddressflow.service;

import com.nanjia.boot.myflow.deliveryaddressflow.model.entity.DeliveryAddressFlow;
import com.nanjia.boot.myflow.deliveryaddressflow.model.form.DeliveryAddressFlowForm;
import com.nanjia.boot.myflow.deliveryaddressflow.model.query.DeliveryAddressFlowQuery;
import com.nanjia.boot.myflow.deliveryaddressflow.model.vo.DeliveryAddressFlowVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 收货/收票信息流水服务类
 *
 * @author 周洋
 * @since 2025-07-29 16:44
 */
public interface DeliveryAddressFlowService extends IService<DeliveryAddressFlow> {

    /**
     *收货/收票信息流水分页列表
     *
     * @return {@link IPage<DeliveryAddressFlowVO>} 收货/收票信息流水分页列表
     */
    IPage<DeliveryAddressFlowVO> getDeliveryAddressFlowPage(DeliveryAddressFlowQuery queryParams);

    /**
     * 获取收货/收票信息流水表单数据
     *
     * @param id 收货/收票信息流水ID
     * @return 收货/收票信息流水表单数据
     */
     DeliveryAddressFlowForm getDeliveryAddressFlowFormData(Long id);

    /**
     * 新增收货/收票信息流水
     *
     * @param formData 收货/收票信息流水表单对象
     * @return 是否新增成功
     */
    boolean saveDeliveryAddressFlow(DeliveryAddressFlowForm formData);

    /**
     * 修改收货/收票信息流水
     *
     * @param id   收货/收票信息流水ID
     * @param formData 收货/收票信息流水表单对象
     * @return 是否修改成功
     */
    boolean updateDeliveryAddressFlow(Long id, DeliveryAddressFlowForm formData);

    /**
     * 删除收货/收票信息流水
     *
     * @param ids 收货/收票信息流水ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteDeliveryAddressFlows(String ids);

    List<DeliveryAddressFlowVO> getDAFlowList(List<Long> orderIds);
}
